package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoCollectType;
import com.muyu.danmo.mapper.DanmoCollectTypeMapper;
import com.muyu.danmo.service.IDanmoCollectTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 拾贝类型Service业务层处理
 *
 * @author yangle
 * @date 2024-10-30
 */
@Service
public class DanmoCollectTypeServiceImpl implements IDanmoCollectTypeService
{
    @Autowired
    private DanmoCollectTypeMapper danmoCollectTypeMapper;

    /**
     * 查询拾贝类型
     *
     * @param id 拾贝类型主键
     * @return 拾贝类型
     */
    @Override
    public DanmoCollectType selectDanmoCollectTypeById(Long id)
    {
        return danmoCollectTypeMapper.selectDanmoCollectTypeById(id);
    }

    /**
     * 查询拾贝类型列表
     *
     * @param danmoCollectType 拾贝类型
     * @return 拾贝类型
     */
    @Override
    public List<DanmoCollectType> selectDanmoCollectTypeList(DanmoCollectType danmoCollectType)
    {
        return danmoCollectTypeMapper.selectDanmoCollectTypeList(danmoCollectType);
    }

    /**
     * 新增拾贝类型
     *
     * @param danmoCollectType 拾贝类型
     * @return 结果
     */
    @Override
    public int insertDanmoCollectType(DanmoCollectType danmoCollectType)
    {
        return danmoCollectTypeMapper.insertDanmoCollectType(danmoCollectType);
    }

    /**
     * 修改拾贝类型
     *
     * @param danmoCollectType 拾贝类型
     * @return 结果
     */
    @Override
    public int updateDanmoCollectType(DanmoCollectType danmoCollectType)
    {
        return danmoCollectTypeMapper.updateDanmoCollectType(danmoCollectType);
    }

    /**
     * 批量删除拾贝类型
     *
     * @param ids 需要删除的拾贝类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectTypeByIds(Long[] ids)
    {
        return danmoCollectTypeMapper.deleteDanmoCollectTypeByIds(ids);
    }

    /**
     * 删除拾贝类型信息
     *
     * @param id 拾贝类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectTypeById(Long id)
    {
        return danmoCollectTypeMapper.deleteDanmoCollectTypeById(id);
    }
}
